package com.lrs.java.j2se_self.collection;

import java.util.*;
public class TestMapNew {
	public static void main(String[] args){
		Map<String,Integer> m = new HashMap<String,Integer> ();
		Map<String,String> mm = new TreeMap<String,String> ();
		Map<String,String> mmm = new TreeMap<String,String> ();
		m.put("one", 1);
		m.put("two", 2);
		m.put("three", 3);
		mm.put("one","1");
		mm.put("two","2");
		mm.put("three", "3");
		mmm.put("A", "100");
		mmm.put("B", "200");
		mmm.put("c", "300");
		System.out.println(m.get("one")+mm.get("two"));
		boolean b = mm.containsValue("3");
		mmm.putAll(mm);
		System.out.println(mmm);
		mmm.remove("A");
		System.out.println(mmm);
		System.out.println(b);	
		
	}
}
